import { PropType, defineComponent } from "vue";
import './index.less'

export default defineComponent({
    props: {
        title: String,
        className: String,
        onClick: Function as PropType<() => void>, // 添加onClick属性
    },
    setup(props: any) {
        return () => (
            <div class={props.className}>
                <span>{props.title}</span>
                <img src="/home/home_button_right_normal.svg" alt="" />
            </div>
        );
    },
})